Merge pull request #1440 from mogorman/master

fix for mqtt publish

Andrew Cantino лет %!s(int64=9): %!d(string=назад)
Родитель
Сommit
6d60760188
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/models/agents/mqtt_agent.rb

+ 1 - 1
app/models/agents/mqtt_agent.rb

@@ -109,7 +109,7 @@ module Agents
109 109
     def receive(incoming_events)
110 110
       mqtt_client.connect do |c|
111 111
         incoming_events.each do |event|
112
-          c.publish(interpolated(event)['topic'], event)
112
+          c.publish(interpolated(event)['topic'], event.payload['message'])
113 113
         end
114 114
       end
115 115
     end